﻿using AutoMapper;
using DFGK_WMS.Context;
using DFGK_WMS.IRepository;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Repository
{
    public class LogRepository : BaseRepository<TLog>, ILogRepository
    {
        public LogRepository(DFGK_DB context, IMapper mapper) : base(context, mapper)
        {
        }


        /// <summary>
        /// 添加日志记录
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public bool AddTLod(TLog m)
        {
            Context.TLogs.Add(m);
            return Context.SaveChanges() > 0;
        }
    }
}
